約 4,477,603 件
https://w.atwiki.jp/vstplugins/pages/144.html
Ethno World 3 Complete メディアファージ (日本輸入元) Best Service (開発元) イントロダクション 世界各国の民族楽器を幅広く収録し、大ベストセラーを記録する"Ethno World Library"シリーズに、新規ライブラリーを追加収録した"Ethno World 3 Complete"が堂々の登場です。"Ethno World"の特色である、幅広いアジア圏からアラブ、アフリカ、ヨーロッパ~アメリカまで、世界中の各民族音楽の背景を熟知するスタッフによる『間違いの無い、本物のサウンド集』であり、今まで収録される事の難しかった"中東~アジア圏の古楽器によるマルチサンプル"や、"宗教色の色濃い、鐘の音"などを真摯に収録。詳細な写真付ブックレット(英文)と併せて、民族楽器の図書館とも言うべき充実度を誇ります!! 搭載サウンド 様々な民族楽器には、それぞれに固有の演奏方法/形態が存在しますが"Ethno World 3 Complete"は、"マルチサンプル"と"ループフレーズ"により、分かり易く生演奏を再現します。例えば、ユニークなのが追加収録された"アラブ" と"中国"の楽器フレーズをセットにしたコンストラクション・セット。中国に関しては"Ethno World"の人気の秘密でもある充実した胡弓"二胡, 高胡, 京胡"や琴のマルチサンプル(印象的な奏法や、代表的な中国曲から引用した様なフレーズを収録)これらをキットと合わせる事により、大アンサンブルを築く事も可能でしょう。収録内容は、弦楽器/鍵盤楽器/管楽器/ベルを含む大量の打楽器。多様な奏法を含むマルチサンプル/フレーズ・セットを200種以上収録。総容量約5.1GBに及ぶ巨大ライブラリーです。 名前 コメント
https://w.atwiki.jp/godot-translate/pages/13.html
GODOTエンジンが完全無料でマルチプラットホームのゲームエンジンと話題になりましたUnityに圧倒されていますが Linuxでも使用できるところが一番のメリットだと思います(私はLinuxユーザーですがそれ以外の人にはあまり関係ないかな?) ただ、日本語のドキュメントが皆無ですので個人的な目的で翻訳したのを載せようと思います。といっても英語力はあれなのであまり期待はしないでください。また、編集をできるようにしていますので、手伝っていただけたら嬉しいです。また、リンク名が英語なのはまだ翻訳していないリンクです。 引用元 https //github.com/okamstudio/godot/wiki ↓翻訳 イントロダクションGodotエンジンのドキュメントへようこそ。このページの目的はすべてのリリースされたドキュメントにアクセスすることです。 リンクがこうなっているのはこういう機能はあるんだけどまだドキュメントが書かれていないということです。 通知 最近型やメソッドが変わったものもありますので、↓を読んでください。SceneMainLoop - SceneTree Notes ロードマップDevelopment RoadmapFrequently Asked Questions 寄付 Godotへの寄付は、いつでも開発者とコミュニティは歓迎します。 問題の修復であろうとも、楽しいことや楽しくない仕事でも受け入れます 何か仕事にとりかかる前に、最近作られたメーリングリストで開発者と話しましょう。https //groups.google.com/forum/#!forum/godot-engineFun!面白い仕事Not so funあまり楽しくない仕事gsoc2015 Ideas GSOC2015年のアイデア集(GSOCについてはググッてください) チュートリアル基本(1歩1歩着実に) Scenes and Nodes Instancing Instancing (Continued) Scripting Scripting (Continued) Creating a 2D Game GUI Introduction Creating a Splash Screen Animation Resources File System SceneTree Singletons (Autoload) エンジン Viewports Multiple Screen Resolutions Input Events Actions Mouse Input Coordinates Version Control Project Organization GUI Control Repositioning Background Loading Encrypting Save Games Internationalizing a Game (Multiple Languages) Handling Quit Request Pausing The Game Basic Networking (TCP UDP) GamePad/Keyboard-Controlled GUIs 2D チュートリアル Physics Collision (2D) Tile Map Kinematic Character (2D) GUI Skinning Particle Systems (2D) Canvas Layers Custom Drawing in Node2D/Control Custom GUI Controls GUI Containers Cut-Out Animation Physics Object Guide 3D チュートリアル Creating a 3D game Materials Fixed Materials Shader Materials Lighting Shadow Mapping High Dynamic Range 3D Performance Limitations Procedural Geometry Light Baking 3D Sprites Using the AnimationTreePlayer Portals Rooms Vehicle GridMap (3D TileMap) Spatial Audio Toon Shading 計算 Vector Math Matrices Transforms 高度な Paths HTTP Example of using the HTTP Client class. Thread Safety Using Multiple Threads. エディタのプラグイン Editor Plugin Writing an editor extension. Editor Plugin Writing a Resource or Node editor extension. Editor Import-Export Writing an editor import-export extension. Editor Scene Loader Writing a scene format loader. Editor 3D Import Writing a script for customizing imported 3D scenes. リファレンス クラスリスト Alphabetical Class List List of classes in alphabetical order. Categorized Class List List of classes organized by category. Inheritance Class Tree List of classes organized by inheritance. Relevant Classes List of the most relevant classes to learn first. (スクリプト)言語 GDScript Built-in, simple, flexible and efficient scripting language. GDScript (More Efficiently) Tips and help migrating from other languages. Shader Built-in, portable, shader language. Locales List of supported locale strings. チートシート(要点) 2D 3D Keybindings List of main 2D and 3D editor keyboard and mouse shortcuts. 全般 Image Files Managing image files (read first!). インポート Import Process The import process described. Importing Textures Importing textures. Importing 3D Meshes Importing 3D meshes. Importing 3D Scenes Importing 3D scenes. Importing Fonts Importing fonts. Importing Audio Samples Importing audio samples. Importing Translations Importing translations. エクスポート Export Exporting Projects. One Click Deploy One Click Deploy. Exporting Images Tools for converting image files and creating atlases on export. PC Exporting for PC (Mac, Windows, Linux). Android Exporting for Android. BlackBerry 10 Exporting for BlackBerry 10. iOS Exporting for iOS. NaCL Exporting for Google Native Client. HTML5 Exporting for HTML5 (using asm.js). Consoles Exporting for consoles (PS3, PSVita, etc). 高度なAdvanced 高度な話題(C++のプログラミングや、ファイルフォーマットやポーティングなど)
https://w.atwiki.jp/aster-infra/pages/187.html
tcpdumpコマンドは、指定したネットワークインターフェイスを監視、そこに到達したデータをコンソール上に表示する。 暗号化されていないパスワードなどは平分で流されるため、tcpdumpでネットワークを監視されていると、アカウント情報を盗まれてしまう可能性がある。 一方、不振な挙動をしているプログラムがある場合、そのデータの送信先を解析する、と言った用途にも利用できる。 tcpdump [オプション] [条件式] tcpdumpコマンドの主なオプション オプション 説明 -i インターフェイス 監視するインターフェイスを指定する -s バイト数 パケットから取り出すバイト数を指定する -X 16進数とASCII文字で表示する -n アドレスを名前解決せずに表示する -N ホストのドメイン名を表示しない -l 標準出力をバッファリングする -t 時刻を表示する -v 詳細に出力する 条件式 説明 port ポート番号を指定する proto プロトコルを指定 次の例は53番ポートへのアクセスの表示例。 クライアント側は172.16.0.5で1029番ポートを使用し、DNSサーバ172.16.0.1へ名前解決の問い合わせをしていることが分かる。 # tcpdump -nli eth0 port 53 tcpdump verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethenet), capture size 96 bytes 17 22 30 623188 IP 172.16.0.5.1029 172.16.0.1.1029 domain 18259+ A? lpic.example.jp. (33) 17 22 30 624005 IP 172.16.0.1.domain 172.16.0.5.1029 18259* 1/1/1 A 127.16.0.3 (86) 17 22 30 522276 IP 172.16.0.5.1029 172.16.0.1.1029 domain 24980+ A? myhost.example.jp. (33) 17 22 30 522971 IP 172.16.0.1.domain 172.16.0.5.1029 24980* 1/1/0 A 127.10.0.1 (86) Xオプションを使うと、16進数とASCII文字で通信内容を表示する。 次の例では、53番ポートの通信内容を表示している。 # tcpdump -X -i eth0 -n port 53 tcpdump verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethenet), capture size 96 bytes 17 23 35 657227 IP 172.0.0.1.1029 172.0.0.1.1029 domain 4765+ A? lpic.example.jp. (33) 0x0000 4500 003d 0000 4000 4011 3cae 7f00 0001 E..=..@.@. ..... 0x0010 7f00 0001 0405 0035 0029 fe3c 129d 0100 .......5.). .... 0x0020 0001 0000 0000 0000 046c 7069 6307 6578 .........lpic.ex 0x0030 616d 706c 6502 6a70 0000 0100 01 ample.jp..... 17 23 65 658146 IP 172.0.0.1.1029 172.0.0.1.1029 1029 4765* 1/1/1 A 172.16.0.3 (33) 0x0000 4500 0072 0005 4000 4011 3c74 7f00 0001 E..=..@.@. t.... 0x0010 7f00 0001 0035 0405 005e fe71 129d 8580 .....5...^.q.... 0x0020 0001 0001 0001 0001 046c 7069 6307 6578 .........lpic.ex 0x0030 616d 706c 6502 6a70 0000 0100 01c0 0c00 ample.jp........ 0x0040 0100 0100 0151 8000 04ac 1000 03ca 1100 .....Q.......... 0x0050 0200 ..
https://w.atwiki.jp/rsbuygoldq/pages/34.html
Following submitting in the stock, decrease the actual conceals main the actual coffer and obtain the plan through presently there. Following the achievement of the technique, replicate the actual motion currently additional associated with accession cowhides before you combination capable quantity of conceals a href="http //www.4rsgold.com/Runescape.Gold" strong Cheap Runescape Gold /strong /a . Because of the reality the actual additional quantity of conceals a person combination the actual much additional capability function as the large quantity associated with precious metal you receive. Regarding 100 cowhides relaxed will be a plentiful achievement within the experience with regard to precious metal. Once you method the actual fortress, mid-foot eastern past the actual link. After that about-face in order to arctic as well as proceed before you visit a sufficient plot along with abounding monsters onto it. This really is your own gold-making supply. Right here you can aswell alternation your own capabilities which company completely can make the actual home increased. Once you have the abounding accounts checklist, deliver this towards the coffer and obtain the actual banknote. Forgotten the actual accounts as well as verification to obtain plentiful additional cowhides. You ll cost in order to combination additional compared to 100 conceals every single child obtain a plentiful amount. The actual additional cowhides you receive, the actual a great deal additional a href="http //www.4rsgold.com/Runescape.Gold" strong Buy Runescape Gold /strong /a a person build up. Without a doubt, you d take authorized combination for example exploration ore, creating what to market, angling with regard to lobsters as well as cutting up wooden. In the event that not one of those dry actions introduced a person suitable final results, there s a plentiful much additional capable as well as properly lovable entry within taking Runescape Precious metal.
https://w.atwiki.jp/sampleisbest/pages/205.html
開発環境 Microsoft Visual C# 2010 Express (SP1) 実行環境 Microsoft Windows XP Home Edition (SP3) プロジェクトの種類 Windows Game (4.0) プロジェクト名 HwiTexture 参考 Hardware instancing for PC in XNA 4, with textures! « float4x4 Game1.cs using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace HwiTexture { class Game1 Game { GraphicsDeviceManager graphics; SpriteBatch sprite; SpriteFont font; Effect effect; Texture2D texture; // fps DateTime prevTime; int draw = 0; int fps = 0; const int count = 20000; VertexBuffer instanceBuffer; VertexBuffer geometryBuffer; IndexBuffer indexBuffer; VertexDeclaration instanceVertexDeclaration; VertexBufferBinding[] bindings; Matrix projection; // カメラ Vector3 camPos; int camLat = -30; int camLong = 225; struct InstanceInfo { public Matrix World; public Vector2 AtlasCoordinate; } public Game1() { graphics = new GraphicsDeviceManager(this); graphics.PreferredBackBufferWidth = 1280; graphics.PreferredBackBufferHeight = 720; Content.RootDirectory = "Content"; IsMouseVisible = true; } protected override void Initialize() { sprite = new SpriteBatch(GraphicsDevice); prevTime = DateTime.Now; base.Initialize(); } protected override void LoadContent() { // ソリューション エクスプローラーの(Content)に追加しておく font = Content.Load SpriteFont ("SpriteFont1"); // 新しい項目:Sprite Font effect = Content.Load Effect ("HardwareInstancing"); // 新しい項目:Effect File (.fx) texture = Content.Load Texture2D ("default_256"); // 既存の項目:default_256.png GenerateGeometryBuffers(1); GenerateInstanceVertexDeclaration(); GenerateInstanceInformation(); bindings = new VertexBufferBinding[2]; bindings[0] = new VertexBufferBinding(geometryBuffer, 0); bindings[1] = new VertexBufferBinding(instanceBuffer, 0, 1); projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45), GraphicsDevice.Viewport.AspectRatio, 0.1f, 2000); effect.CurrentTechnique = effect.Techniques["Instancing"]; effect.Parameters["cubeTexture"].SetValue(texture); base.LoadContent(); } void GenerateGeometryBuffers(float size) { VertexPositionTexture[] vertices = new VertexPositionTexture[24]; for (int n = 0; n 4; n++) { float u = size * ((n 1) * 2 - 1); float v = size * ((n 2) - 1); vertices[0 + n].Position = new Vector3(u, size, v); vertices[4 + n].Position = new Vector3(u, -size, -v); vertices[8 + n].Position = new Vector3(-size, -v, u); vertices[12 + n].Position = new Vector3(u, -v, size); vertices[16 + n].Position = new Vector3(size, -v, -u); vertices[20 + n].Position = new Vector3(-u, -v, -size); } for (int n = 0; n 24; n++) { vertices[n].TextureCoordinate = new Vector2(n 1, (n 1) 1); } geometryBuffer = new VertexBuffer(GraphicsDevice, typeof(VertexPositionTexture), 24, BufferUsage.WriteOnly); geometryBuffer.SetData(vertices); int[] indices = new int[36]; for (int n = 0; n 6; n++) { int n6 = n * 6; int n4 = n * 4; indices[n6 + 0] = n4 + 0; indices[n6 + 1] = n4 + 1; indices[n6 + 2] = n4 + 2; indices[n6 + 3] = n4 + 1; indices[n6 + 4] = n4 + 3; indices[n6 + 5] = n4 + 2; } indexBuffer = new IndexBuffer(GraphicsDevice, typeof(int), 36, BufferUsage.WriteOnly); indexBuffer.SetData(indices); } void GenerateInstanceVertexDeclaration() { VertexElement[] elements = new VertexElement[5]; for (int n = 0; n 4; n++) { elements[n] = new VertexElement(sizeof(float) * 4 * n, VertexElementFormat.Vector4, VertexElementUsage.TextureCoordinate, n + 1); } elements[4] = new VertexElement(sizeof(float) * 16, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 5); instanceVertexDeclaration = new VertexDeclaration(elements); } void GenerateInstanceInformation() { InstanceInfo[] instances = new InstanceInfo[count]; Random rnd = new Random(); for (int n = 0; n count; n++) { instances[n].World = Matrix.CreateScale((float)rnd.NextDouble() + 0.5f) * Matrix.CreateFromYawPitchRoll( (float)rnd.NextDouble() * MathHelper.TwoPi, (float)rnd.NextDouble() * MathHelper.TwoPi, (float)rnd.NextDouble() * MathHelper.TwoPi) * Matrix.CreateTranslation(new Vector3(-rnd.Next(300), -rnd.Next(250), -rnd.Next(400))); instances[n].AtlasCoordinate = new Vector2(rnd.Next(0, 2), rnd.Next(0, 2)); } instanceBuffer = new VertexBuffer(GraphicsDevice, instanceVertexDeclaration, count, BufferUsage.WriteOnly); instanceBuffer.SetData(instances); } protected override void Update(GameTime gameTime) { KeyboardState state = Keyboard.GetState(); if (state[Keys.Escape] == KeyState.Down) Exit(); if (state[Keys.W] == KeyState.Down) Move(0, 0); if (state[Keys.S] == KeyState.Down) Move(180, 0); if (state[Keys.A] == KeyState.Down) Move(0, -90); if (state[Keys.D] == KeyState.Down) Move(0, 90); if (state[Keys.Up] == KeyState.Down) camLat++; if (state[Keys.Down] == KeyState.Down) camLat--; if (state[Keys.Left] == KeyState.Down) camLong--; if (state[Keys.Right] == KeyState.Down) camLong++; if (state[Keys.PageUp] == KeyState.Down) Move(90, 0); if (state[Keys.PageDown] == KeyState.Down) Move(-90, 0); base.Update(gameTime); } void Move(int degLat, int degLong) { float rad = MathHelper.ToRadians(camLat + degLat); if (degLong == 0) { camPos.Y += (float)Math.Sin(rad) * 0.2f; } float r = (float)Math.Cos(rad) * 0.2f; rad = MathHelper.ToRadians(camLong + degLong); camPos.X += (float)Math.Cos(rad) * r; camPos.Z += (float)Math.Sin(rad) * r; } protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); GraphicsDevice.DepthStencilState = DepthStencilState.Default; float rad = MathHelper.ToRadians(camLat); float y = (float)Math.Sin(rad) + camPos.Y; float r = (float)Math.Cos(rad); rad = MathHelper.ToRadians(camLong); float x = camPos.X + (float)Math.Cos(rad) * r; float z = camPos.Z + (float)Math.Sin(rad) * r; Matrix view = Matrix.CreateLookAt(camPos, new Vector3(x, y, z), Vector3.Up); GraphicsDevice.Indices = indexBuffer; effect.Parameters["WVP"].SetValue(view * projection); effect.CurrentTechnique.Passes[0].Apply(); GraphicsDevice.SetVertexBuffers(bindings); GraphicsDevice.DrawInstancedPrimitives(PrimitiveType.TriangleList, 0, 0, 24, 0, 12, count); // フレームレート draw++; DateTime now = DateTime.Now; TimeSpan t = now - prevTime; if (t.TotalMilliseconds = 1000) { fps = draw; draw = 0; prevTime = now; } sprite.Begin(); string text = "fps=" + fps + " lat=" + camLat + " long=" + camLong; sprite.DrawString(font, text, new Vector2(0, 0), Color.White); text = string.Format("x={0 f1} y={1 f1} z={2 f1}", camPos.X, camPos.Y, camPos.Z); sprite.DrawString(font, text, new Vector2(0, 20), Color.White); sprite.End(); base.Draw(gameTime); } } } HardwareInstancing.fx /* Effect File プロジェクトのプロパティ [XNA Game Studio]タブ Use HiDef to access the complete API */ float4x4 WVP; texture cubeTexture; sampler TextureSampler = sampler_state { texture = cubeTexture ; mipfilter = LINEAR; minfilter = LINEAR; magfilter = LINEAR; }; struct InstancingVSinput { float4 Position POSITION0; float2 TexCoord TEXCOORD0; }; struct InstancingVSoutput { float4 Position POSITION0; float2 TexCoord TEXCOORD0; }; InstancingVSoutput InstancingVS( InstancingVSinput input, float4x4 instanceTransform TEXCOORD1, float2 atlasCoord TEXCOORD5) { InstancingVSoutput output; float4 pos = input.Position; pos = mul(pos, transpose(instanceTransform)); pos = mul(pos, WVP); output.Position = pos; output.TexCoord = float2( (input.TexCoord.x / 2.0f) + (atlasCoord.x / 2.0f), (input.TexCoord.y / 2.0f) + (atlasCoord.y / 2.0f)); return output; } float4 InstancingPS(InstancingVSoutput input) COLOR0 { return tex2D(TextureSampler, input.TexCoord); } technique Instancing { pass Pass0 { VertexShader = compile vs_3_0 InstancingVS(); PixelShader = compile ps_3_0 InstancingPS(); } }
https://w.atwiki.jp/unbobo1213/pages/61.html
teacher Ronald 1. Natural Order - the complete predicate follows the complete subject. example The seagulls fly through the air. 2. Transposed order - complete predicate or part of the predicate is placed before the subject. example Through the air fly the seagulls. Activity1 1. Down the water plunged the diver. The diver plunged down the water 2. Danny ran down the hill. Doen the hill Danny ran. 3. A jet flies at a very high speed. At a very high speed flies a jet. 4. Near the desk sat a stranger. A stranger sat near the desk 5. The players paraded around the court. Around the court paraded the players. 6. Our language teacher is going abroad next year. 7. In Japan blooms a beautiful cherry bloosoms. A beautiful cherry blossoms blooms in Japan. 8. The miners crawled through the underground tunnel. Through the underground tunnel, crawled the miners. 9. We abstain from meat on Holyweek. Activity2 1. find my treasures old in the cave you will you will find my old treasures old in the cave 2. dark the in stumble we we stumble in the dark 3. river the ferry across plodded the 4. Early in the evening in the harbor appeared ship a 5. table on the top encyclopedia missing lay the predicate 《文》述部、述語 plunge 飛び込む tunnel トンネル stumble つまずく、よろめく ☆Never have I been so humiliated in my life. to make them thier writning interesting how to deliver (presentation) inverted order split order confusing objectively subjectively The missing encyslopedia lay on the top table.
https://w.atwiki.jp/tmlibjs/pages/17.html
2014/07/10更新 公式、準公式 公式HP チュートリアルページはしんでるぴよ。 公式Docs 最新の名前空間なので、古いソース見てるとわかりづらいぴよ。クラス名で検索ぴよ。Ajax検索なので便利ぴよ。 公式Usage 公式Example 公式ブログ サンプル多数ぴよ。最終更新2013。サンプルが0.1.xどまりぴよ。 公式jsdo.it サンプル多数ぴよ。検索性悪いけど、0.3.xのサンプルもあるぴよ。 おそらく公式Git Git上の実体(最新 2014/07/10時点で0.3.0) 直リンはほどほどにするぴよ。 http //phi-jp.github.io/tmlib.js/build/tmlib.js Git上の実体(0.2.0) 直リンはほどほどにするぴよ。 http //rawgit.com/phi-jp/tmlib.js/0.2.0/build/tmlib.js おそらく公式実験場canvasapp canvaselement label animationsprite mapsprite example benchmark 最新サンプルが手に入るぴよ。 レアなMapSpriteのサンプルもあるぴよ。 HTMLソースを辿らないと見えないので貼っとくぴよ。 勝手 tmlib備忘録 大きく仕様変更された0.2.xについて基本をまとめてる。まずここを読むと新旧サンプル混在の混乱を避けれるぴよ。 tmlib.js 入門 typeOf 'aki_mana' tmlib.jsの不足機能のハック&拡張方法などがあるぴよ。 TEST CORDING QIITA YFukuyama 0.1.xだけど、CoffeeScriptでtmlib.jsを扱ってるぴよ。 javascriptでゲームを作りたいブログ サンプル 0.3.x phi s フレームアニメーション(frameIndex) - tmlib.js 0.3 http //jsdo.it/phi/4pVs 0.2.x 一定じゃないフレーム数や、フレーム順番変更などの、拡張アニメーション。おっぱいぴよ。 http //blz.x0.com/lab/tmlib/02.html 逃走ゲーム(仮)Level5-4 巡回する敵を実装する http //jsdo.it/kneesockscollector/escape17 0.1.x 04 「画像を表示してアニメーションさせてみよう(スプライトアニメーション)」 – tmlib.js入門用チュートリアル!避けゲーを作ってみよう。サンプルが古いぴよ? http //testcording.com/?p=1614 マップチップ表示 + スプライトアニメーション - tmlib.js 擬似パッドも。 http //jsdo.it/omatoro/sVun メモ 「tmlib.js download」でぐぐると入門サイトが多数出てくるぴよ。
https://w.atwiki.jp/xample/pages/7.html
動画(youtube) @wikiのwikiモードでは #video(動画のURL) と入力することで、動画を貼り付けることが出来ます。 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_209_ja.html また動画のURLはYoutubeのURLをご利用ください。 =>http //www.youtube.com/ たとえば、#video(http //youtube.com/watch?v=kTV1CcS53JQ)と入力すると以下のように表示されます。
https://w.atwiki.jp/fukutaro/pages/15.html
require "open-uri" require "nkf" url = ARGV[0] || "http //kakaku.com/item/K0000320573/?lid=shop_itemview_recommend_1" opt = "-w -xm0" opt2 = "-s -xm0" open(url){|f| # split( # print NKF.nkf(opt, f.read) , "\n" NKF.nkf(opt, f.read).split(/\n/).each{|line| if line =~ / p span\sid="minPrice" 最安価格\(税込\): a\shref=".*" span (.*) \/span \/a \/span / print NKF.nkf(opt2, $1) end } # print f.read }
https://w.atwiki.jp/fattencho/pages/30.html
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses * http //www.opensource.org/licenses/mit-license.php * http //www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @example $.cookie( the_cookie , the_value ); * @desc Set the value of a cookie. * @example $.cookie( the_cookie , the_value , {expires 7, path / , domain jquery.com , secure true}); * @desc Create a cookie with all available options. * @example $.cookie( the_cookie , the_value ); * @desc Create a session cookie. * @example $.cookie( the_cookie , null); * @desc Delete a cookie by passing null as value. * * @param String name The name of the cookie. * @param String value The value of the cookie. * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. * If set to null or omitted, the cookie will be a session cookie and will not be retained * when the the browser exits. * @option String path The value of the path atribute of the cookie (default path of page that created the cookie). * @option String domain The value of the domain attribute of the cookie (default domain of page that created the cookie). * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will * require a secure protocol (like HTTPS). * @type undefined * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */ /** * Get the value of a cookie with the given name. * * @example $.cookie( the_cookie ); * @desc Get the value of a cookie. * * @param String name The name of the cookie. * @return The value of the cookie. * @type String * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */ jQuery.cookie = function(name, value, options) { if (typeof value != undefined ) { // name and value given, set cookie options = options || {}; if (value === null) { value = ; options.expires = -1; } var expires = ; if (options.expires (typeof options.expires == number || options.expires.toUTCString)) { var date; if (typeof options.expires == number ) { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = ; expires= + date.toUTCString(); // use expires attribute, max-age is not supported by IE } var path = options.path ? ; path= + options.path ; var domain = options.domain ? ; domain= + options.domain ; var secure = options.secure ? ; secure ; document.cookie = [name, = , encodeURIComponent(value), expires, path, domain, secure].join( ); } else { // only name given, get cookie var cookieValue = null; if (document.cookie document.cookie != ) { var cookies = document.cookie.split( ; ); for (var i = 0; i cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + = )) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } };